package com.apps.member.service.impl;

import com.apps.member.model.po.KupaMemberBuyGoods;
import com.apps.member.dao.KupaMemberBuyGoodsMapper;
import com.apps.member.service.IKupaMemberBuyGoodsService;
import com.apps.sworld.dao.impl.sDaoImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 大鹏
 * @since 2020-10-02
 */
@Service
public class KupaMemberBuyGoodsServiceImpl extends sDaoImpl<KupaMemberBuyGoodsMapper, KupaMemberBuyGoods> implements IKupaMemberBuyGoodsService {

    @Override
    public KupaMemberBuyGoods getOne(Integer member_id, Integer goods_id) {
        QueryWrapper<KupaMemberBuyGoods> wrapper=new QueryWrapper<>();
        wrapper.eq("member_id",member_id);
        wrapper.eq("goods_id",goods_id);
        return getOne(wrapper);
    }
}
